﻿<views:MvxWpfView 
	x:Class="Sidvall.IdentityManager.UI.Wpf.Views.NewsView"
	xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:vms="clr-namespace:Sidvall.IdentityManager.UI.ViewModels;assembly=Sidvall.IdentityManager.UI"
	xmlns:local="clr-namespace:Sidvall.IdentityManager.UI.Wpf.Views"
	xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters;assembly=Sidvall.UI.Wpf" 
	xmlns:Controls="clr-namespace:Sidvall.IdentityManager.UI.Wpf.Controls" 
	mc:Ignorable="d" 
	d:DesignHeight="300" d:DesignWidth="300">

	<views:MvxWpfView.Resources>
		<Converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
		<Converters:BooleanToVisibilityConverter x:Key="NotBooleanToVisibilityConverter" Not="True"/>
	</views:MvxWpfView.Resources>

	<Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:NewsViewModel}}">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
				<RowDefinition/>
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<Controls:HeaderControl HeaderCaption="News" />
			<Grid Grid.Row="2">
				<WebBrowser Grid.Row="1" local:NewsView.Html="{Binding NewsHtml}" />
			</Grid>
			<Grid Grid.Row="3">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition />
				</Grid.ColumnDefinitions>

				<Label Grid.Column="0" Content="Created:" />
				<TextBlock Grid.Column="1" Text="{Binding Created}" VerticalAlignment="Center" />
				<Label Grid.Column="2" Content="File version:" Margin="5,0,0,0" />
				<TextBlock Grid.Column="3" Text="{Binding FileVersion}" VerticalAlignment="Center" />
			</Grid>
		</Grid>
	</Grid>
</views:MvxWpfView>
